function init(){
    changeRowState();
}

function changeRowState(){
    $('td.input-contact-unread .checkbox, td.input-contact-delete-flg .checkbox').change(function(){
        var url = $(this).parents('table').attr('data-href');
        var value = $(this).is(':checked')==true?1:0;
        var name = $(this).attr('data-name');
        var contact = {id: $(this).parents('tr').attr('data-id')};
        contact[name] = value;
        changeState(url, {contact: contact});
    });
}